package com.common.controller;

import org.springframework.stereotype.Controller;

import com.common.utils.ShiroUtils;
import com.workcenter.entity.Sys.SysUserDO;

@Controller
public class BaseController {
  public SysUserDO getUser() {
    return ShiroUtils.getUser();
  }

  public Long getUserId() {
    return getUser().getUserId();
  }

  public String getUsername() {
    return getUser().getUsername();
  }
}
